package com.zzz.demo.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author ZZZ
 * @version 1.0
 * @date 2018/12/26 0026
 */
@WebListener
public class AppListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("init............");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("destory..........");
    }
}
